import matplotlib.pyplot as plt
import numpy as np


x = [2, 4, 6, 8, 10, 12, 14]
y = [9, 12, 16, 15, 12, 11, 10]


plt.rcParams['font.sans-serif'] = ['SimHei'] # 用来正常显示中文标签SimHei

font = {'color':'white','size':18}


plt.tick_params(axis='x', colors='antiquewhite')
plt.tick_params(axis='y', colors='antiquewhite')


plt.xlabel('时间（h）', fontdict=font)  # x_label
plt.ylabel('风速（m/s）', fontdict=font)  # y_label
plt.plot(x, y, alpha=1.0, linestyle='-', color='antiquewhite', linewidth=5)

ax = plt.gca() # 获取当前的axes
ax.spines['left'].set_color('antiquewhite')
ax.spines['bottom'].set_color('antiquewhite')
ax.spines['bottom'].set_linewidth(4);###设置底部坐标轴的粗细
ax.spines['left'].set_linewidth(4);####设置左边坐标轴的粗细

plt.savefig('2.png', transparent=True)
plt.show()

